__author__ = 'shawhen'

from PyQt5.QtWidgets import *


class CatalogTabWidget(QWidget):
    def __init__(self, parent=None):
        super(CatalogTabWidget, self).__init__(parent)

        from . import ui_catalog_tab_widget as m_ui

        self.ui = m_ui.Ui_Form()
        self.ui.setupUi(self)

    def hide_navi(self, direction):
        if direction == "parent":
            self.ui.parent_button.hide()
        elif direction == "children":
            self.ui.children_button.hide()

    def set_name(self, name):
        self.ui.show_button.setText(name)